package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia", contextId = "wemedia-user")
public interface IUserClient {
    /**
     * 自媒体端保存app端的用户名密码
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/wemedia/save")
    public ResponseResult saveWmUser(@RequestBody WmUserDto dto);
}
